package com.xunqi.ad.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description:
 * @Created with IntelliJ IDEA.
 * @author: 夏沫止水
 * @create: 2020-04-28 17:28
 **/
@Getter
@AllArgsConstructor
public enum ResponseEnum {

    ERROR(-1,"服务端错误"),

    SUCCESS(0,"成功"),

    USERNAME_EXIST(1,"用户名已存在"),

    CAN_NOT_FIND_RECORD(2,"找不到数据记录"),

    SAME_NAME_PLAN_ERROR(3,"存在同名的推广计划"),

    SAME_NAME_UNIT_ERROR(4,"存在同名的推广单元"),

    PARAM_ERROR(5, "参数错误"),

    ;

    private Integer code;

    private String msg;

}
